//
//  XSQLRBtn.m
//  BuDeJie
//
//  Created by Sem on 2018/6/29.
//  Copyright © 2018年 SEM. All rights reserved.
//

#import "XSQLRBtn.h"

@implementation XSQLRBtn

- (void)awakeFromNib{
    [super awakeFromNib];
    UIImage *image =self.currentBackgroundImage;
    image=[image stretchableImageWithLeftCapWidth:image.size.width*0.5 topCapHeight:image.size.height*0.5];
    [self setBackgroundImage:image forState:UIControlStateNormal];
}
/*c
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
